package com.msb.mall.search.entity.vo;


import lombok.Data;

import java.util.List;

/**
 * 封装页面有可能提交的查询条件
 */

@Data
public class SearchParam {

    //首页查询的全文检索关键字
    private String keyword;

    //根据分类查询
    private Long cateLogId;

    /**
     * sort = saleCount_asc/desc\
     * sort = skuPrice_asc/desc
     * sort = hotScore_asc/desc
     * 排序条件
     */
    private String sort;

    //查询的筛选条件
    //显示是否有货 hasStock=0/1
    private Integer hasStock;

    //按照品牌查询，可以多选brandId=1&brandId=2
    private List<Long> brandId;

    //价格区间查询skuPrice=200_300
    //skuPrice=_300
    //skuPrice=200_
    private String skuPrice;

    //不同的属性，按照属性信息进行筛选
    //attrs:1_苹果:5.6存
    private List<String> attrs;

    //页码
    private Integer pageNum = 1;

}
